package analysisOfConcurrent.main.linkedlist;

import java.util.Deque;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;

public class Behavior {

	private Queue<String> queue = null;
	private List<String> list = null;
	private Deque<String> deque = null;

	private static Behavior behavior = null;

	public static Behavior getBehavior() {

		if(behavior == null){
			behavior = new Behavior();
		}
		return behavior;
	}

	private Behavior() {
		queue = new LinkedList<String>();
		list = new LinkedList<String>();
		deque = new LinkedList<String>();
	}

	public void print(String behavior, String line) {
		System.out.println(behavior + " -> " + line);
	}

	public Queue<String> getQueue() {
		return queue;
	}

	public void setQueue(Queue<String> queue) {
		this.queue = queue;
	}

	public List<String> getList() {
		return list;
	}

	public void setList(List<String> list) {
		this.list = list;
	}

	public Deque<String> getDeque() {
		return deque;
	}

	public void setDeque(Deque<String> deque) {
		this.deque = deque;
	}

}
